#pragma once


enum LOG_TYPE {LT_NOR = 0, LT_ERR = 1, LT_WRR = 2, LT_ASS = 3};
enum LOG_FORMAT {LF_TEXT, LF_HTML};
extern const char* LOG_TYPE_NAMES[4];

int log(const char* format, ...);
int log_typped(LOG_TYPE type, const char* format, ...);
void log_set_file(const char* fname, LOG_FORMAT format);
void log_close_file();